package Linked_New;
import java.util.Scanner;
public class First {

        public static void main(String[] args) {
            int nWuYuChu = 0,j=0;
            Scanner scan = new Scanner(System.in);
            System.out.println("please input your number and today's time");
            String s = scan.nextLine();
            String[] ss = s.split(" ");
            Linked[] list = new Linked[20];
            for(int i=0;i<ss.length;i++)
            {
                int num=Integer.parseInt(ss[i]);
                list[i] = new Linked(num);
                nWuYuChu++;
            }
            Linked head = list[0];
            for(int i=0;i<nWuYuChu;i++)
            {
                list[j].setNext(list[++j]);
            }
            System.out.println("\n"+"you own :"+nWuYuChu+" elements");
            System.out.println(head.print(head));
        }
}
